<?php if ($this->_var['related_goods']): ?>
<li class="padd loop cl_p_re" style=" margin-bottom:5px;">
      <div style="height:20px; line-height:20px; font-weight:normal; text-indent:5px; background:#EDEDED">可选颜色:</div>
      <?php $_from = $this->_var['related_goods']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'releated_goods_data');if (count($_from)):
    foreach ($_from AS $this->_var['releated_goods_data']):
?>
          <div class="cl" style="width:50px; height:65px; margin:5px;"><a href="<?php echo $this->_var['releated_goods_data']['url']; ?>"><img src="<?php echo $this->_var['releated_goods_data']['goods_thumb']; ?>" alt="<?php echo $this->_var['releated_goods_data']['goods_name']; ?>" class="B_blue"  style="width:50px; height:65px;"/></a></div>
        <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
</li>
<?php endif; ?>
